<template>
  <a-table style="margin-top: 10px" class="table-singe-line" :data="logList" size="mini" :scroll="{ y: 240 }" :pagination="false">
    <template #columns>
      <a-table-column data-index="createUname" title="操作人" />
      <a-table-column data-index="time" title="时间">
        <template #cell="{ record }">
          <p>{{ $setTime(record.gmtCreate) }}</p>
        </template>
      </a-table-column>
      <a-table-column data-index="eventMsg" title="事件" />
    </template>
  </a-table>
</template>

<script lang="ts" setup>
  import { PropType } from 'vue'
  const props = defineProps({
    logList: {
      type: Array as PropType<Array<any>>,
      default: () => [],
    },
  })
</script>

<style lang="less" scoped></style>
